package br.com.werp.suporte.Empresa;
import java.util.*;
import org.apache.struts.action.*;
import javax.servlet.http.*;

/**
 * Creation Date 19/10/2004 13:50:31
 * Last Modify Date 17/10/2006 14:40:30
 */

public class SetorDetalheActionForm extends org.apache.struts.action.ActionForm {
  public String stor_id;
  public String stor_descricao;
  private boolean valida = false;
  public SetorDetalheActionForm() {
  }
  /**
    * STOR_ID: Gets the value of this field.
    */
  public String getStor_id() {
    return stor_id;
  }
  /**
     * STOR_ID: Sets thhe value for this field.
     */
  public void setStor_id(String STOR_ID) {
    stor_id = STOR_ID;
  }
  /**
    * STOR_DESCRICAO: Gets the value of this field.
    */
  public String getStor_descricao() {
    return stor_descricao;
  }
  /**
     * STOR_DESCRICAO: Sets thhe value for this field.
     */
  public void setStor_descricao(String STOR_DESCRICAO) {
    stor_descricao = STOR_DESCRICAO;
  }
  /**
    * Reset all fields.
    */
  public void reset(org.apache.struts.action.ActionMapping mapping,
      javax.servlet.http.HttpServletRequest request) {
    stor_id = null;
    stor_descricao = null;
  }
  /**
    * Validate fields and return ActionErrors.
    */

  public ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
      javax.servlet.http.HttpServletRequest request) {
    ActionErrors errors = new ActionErrors();
    valida = false;
    if (!com.egen.util.struts.Token.isTokenValid(mapping, request)) {
      errors.add("Warning", new ActionError("token.error","<br>","","",""));
    }
    com.egen.util.struts.Token.saveToken(mapping, request);
    if (com.egen.util.text.Validate.isValidate("update_action,delete_action,",
        request)) {


    }
    if (errors != null && errors.size() > 0) {
      javax.servlet.http.HttpSession session = request.getSession(true);
      ActionForward actionForward = null;
      session.setAttribute(mapping.getName(), this);
    }
    return errors;
  }
}
